<!--
描述：库房
开发人：zangyanming
开发日期：2018年8月7日
-->
<template lang="pug">
    kalix-dialog.user-add(bizKey="provider" ref="kalixBizDialog" v-bind:formModel.sync="formModel" isView)
        div.el-form(slot="dialogFormSlot")
            div.s-flex
                el-form-item.s-flex_item(label="单位代码" prop="code" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.code" readonly)
                el-form-item.s-flex_item(label="单位名称" prop="fullName" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.fullName" readonly)
            div.s-flex
                el-form-item.s-flex_item(label="简称" prop="abbrName" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.abbrName" readonly)
                el-form-item.s-flex_item(label="联系人" prop="contact" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.contact" readonly)
            div.s-flex
                el-form-item.s-flex_item(label="电话" prop="telNo1" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.telNo1" readonly)
                el-form-item.s-flex_item(label="传真" prop="fax" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.fax" readonly)
            div.s-flex
                el-form-item.s-flex_item(label="邮编" prop="zipCode" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.zipCode" readonly)
                el-form-item.s-flex_item(label="电子信箱" prop="email" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.email" readonly)
            div.s-flex
                el-form-item.s-flex_item(label="开户行" prop="bankName" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.bankName" readonly)
                el-form-item.s-flex_item(label="账号" prop="account" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.account" readonly)
            div.s-flex
                el-form-item.s-flex_item(label="税号" prop="taxNo" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.taxNo" readonly)
                el-form-item.s-flex_item(label="地址" prop="address" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.address" readonly)
            el-form-item.s-flex(label="是否为印刷厂" prop="flag" v-bind:label-width="labelWidth")
                div(style="text-align:center")
                    el-switch.s-flex_item(v-model="formModel.flag" active-text="是" inactive-text="否" active-value="1" inactive-value="0" disabled)
</template>

<script type="text/ecmascript-6">
    import FormModel from './model'

    export default {
        name: 'ProviderView',
        data() {
            return {
                formModel: Object.assign({}, FormModel),
                labelWidth: '140px'
            }
        },
        methods: {
        }
    }
</script>
